package com.hotel.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hotel.entity.Log;
import org.springframework.scheduling.annotation.Async;

public interface LogService {

    IPage<Log> getOperationLog(String username,String createTime,String endTime,Integer current,Integer size);

    Log getLog(String id);

    int deleteLog(String id);

    int clearLog();

    /**
     * 异步保存操作日志
     */
    @Async("CodeAsyncThreadPool")
    void saveLog(Log log);
}
